<template>
  <div class="main">
    <div id="vditor"></div>
  </div>
</template>

<script>
import axios from 'axios';
import Vditor from 'vditor';
import "vditor/dist/index.css";
var ipcRenderer;
if (window.require) {
  ipcRenderer = window.require('electron').ipcRenderer;
}
export default {
  name: "",
  components: {},
  data() {
    return {

    };
  },
  watch: {},
  created() {

  },
  mounted() {
    new Vditor('vditor', {
      height: '100%',
      placeholder:'',
      toolbarConfig: {
        pin: true,
      },
      cache: {
        enable: false,
      },
      after: () => {
        contentEditor.value.setValue("hello,Vditor+Vue!");
      },
    })
  },
  methods: {
  }
};
</script>

<style lang="less" scoped>
</style>
